﻿using Assets.Content.Scripts.Game;
using Sirenix.OdinInspector;
using UnityEngine;
using UnityEngine.UI;

namespace Assets.Content.Scripts.UI.GameScene
{
    internal class DemandPanel : Widget.Widget
    {
        [SerializeField, LabelText("娱乐值")]
        private Image _entertainmentValue;

        [SerializeField, LabelText("饥饿值")]
        private Image _hungerValue;

        [SerializeField, LabelText("寒冷值")]
        private Image _coldValue;

        protected override void Update()
        {
            base.Update();
            _entertainmentValue.fillAmount = Player.Instance.PlayerData.EntertainmentValue;
            _hungerValue.fillAmount = Player.Instance.PlayerData.HungerValue;
            _coldValue.fillAmount = Player.Instance.PlayerData.ColdValue;
        }
    }
}
